namespace Gluten.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class AddGlobalizationResources : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "Labels",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        BigText = c.String(maxLength: 4000),
                        GrayText = c.String(maxLength: 4000),
                        LinkText = c.String(maxLength: 4000),
                        LinkUrl = c.String(maxLength: 4000),
                        Image = c.String(maxLength: 4000),
                    })
                .PrimaryKey(t => t.Id);
            
            AddColumn("Menus", "Label", c => c.Guid(nullable: false));
            AddColumn("Pages", "Label", c => c.Guid(nullable: false));
            DropTable("Logoes");
        }
        
        public override void Down()
        {
            CreateTable(
                "Logoes",
                c => new
                    {
                        Name = c.String(nullable: false, maxLength: 4000),
                        BigText = c.String(maxLength: 4000),
                        GrayText = c.String(maxLength: 4000),
                        LinkText = c.String(maxLength: 4000),
                        LinkUrl = c.String(maxLength: 4000),
                        Image = c.String(maxLength: 4000),
                    })
                .PrimaryKey(t => t.Name);
            
            DropColumn("Pages", "Label");
            DropColumn("Menus", "Label");
            DropTable("Labels");
        }
    }
}
